package chat.ui;

import java.util.*;

public class MessageHandler {
	
	private String contact_name;
	private List<String> message_list = new LinkedList<String>();
	
	public MessageHandler(String contact_name){
		
		this.contact_name = contact_name;
		
		
	}
	
	public void addMessage(String message){
		this.message_list.add(message);
	}
	
	public String getMessages(){
		String mesBuffer="";
		
		for (String s: message_list){
			mesBuffer +=s;
		}
		
		return mesBuffer;
	}
	
	public String getContactMessageName(){
		return this.contact_name;
	}
	
}
